package com.zn.dao;

import com.zn.dto.HolderDTO;
import com.zn.dto.UserDTO3;
import com.zn.pojo.UserInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserInfoMapper {
    int deleteByPrimaryKey(Integer userId);

    int insert(UserInfo record);

    int insertSelective(UserInfo record);

    UserInfo selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(UserInfo record);

    int updateByPrimaryKey(UserInfo record);

    UserInfo selectByUsername(@Param("username") String username);

    int updateUserPassword(@Param("uid")Integer uid, @Param("password")String password);

    List<HolderDTO> selectHolderByRole(int roleId);

    List<UserDTO3> selectAll();

    List<UserDTO3> selectByRoleId(int roleId);
}